const express = require('express')
const queryUserById = require('./user/queryUserById')
const addUser = require('./user/addUser')
const editUser = require('./user/editUser')

const user = express.Router();

user.get("/user", require('./user/queryUserAll'));
user.get("/user/:id", queryUserById);
user.post("/user", addUser);
user.put("/user/:id", editUser);


module.exports = {
    user
}